package com.lu.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.lu.entity.Phone;
import com.lu.entity.User;
import com.lu.phone.utils.MobileCodeWS;
import com.lu.phone.utils.MobileCodeWSSoap;
import com.lu.service.PhoneService;
import com.lu.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

public class DoRemoveAction extends ActionSupport{
	
	UserService userService = new UserService();
	
	private Long id;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	public String execute(){
		try {
			userService.remove(id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return "error";
		}
		return "success";
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}

}
